<?
class Vampiro extends Raca {

	protected $languages;
	
	function __construct ($area) {
		$size		= 5;
		$hp			= 51;
		$initiative	= 6;
		$speed		= 3;
		$armor		= array(3, 12);
		$attack		= array(2, 5);
		$saves		= array(1, 5, 5);
		$abilities	= array(16, 14, 0, 13, 13, 14);
		$visio		= 1;
		
		$this->languages = new ListaDeElementos;
		$this->languages->adiciona('common');
		$this->languages->adiciona('infernal');
		$this->languages->adiciona('abyssal');
		
		parent::__construct('vampiro', 'um', 'raca_vampiro_by_ironshod2.png', 'raca_vampiro2.png', 1, 
		$size, $hp, $initiative, $speed,
		$armor, $attack, $saves, $abilities, $vision
		);
		
		$this->arma = new ObjArmaPancada(1, 4, 0);
		$this->data['area_nome'] = $area->getValue('nome');
	}
	
	public function getValue($key) {
		return $this->data[$key];
	}
}
?>